/* ═══ MJ 23 — Futuristic FX Layer ═══ */

/* Animated mesh background */
.mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.mesh-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 166, 126, 0.18), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 112, 86, 0.12), transparent 45%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(127, 215, 184, 0.1), transparent 50%);
    animation: meshDrift 18s ease-in-out infinite alternate;
}
@keyframes meshDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, 2%) rotate(2deg); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 112, 86, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 112, 86, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; background: rgba(0, 166, 126, 0.25); top: -10%; right: -5%; animation-delay: 0s; }
.orb-2 { width: 240px; height: 240px; background: rgba(0, 85, 65, 0.2); bottom: 10%; left: -8%; animation-delay: -3s; }
.orb-3 { width: 180px; height: 180px; background: rgba(127, 215, 184, 0.2); top: 40%; right: 20%; animation-delay: -5s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.08); }
}

/* Hero */
.hero-future {
    position: relative;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f8fffe 0%, #f0f7f5 40%, #f8fafb 100%);
    border-bottom: 1px solid rgba(0, 112, 86, 0.08);
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(135deg, #003d30 0%, #007056 45%, #00a67e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #007056;
    background: rgba(0, 112, 86, 0.08);
    border: 1px solid rgba(0, 112, 86, 0.15);
    box-shadow: 0 0 24px rgba(0, 166, 126, 0.15);
    animation: badgePulse 3s ease-in-out infinite;
}
.badge-glow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00a67e;
    box-shadow: 0 0 8px #00a67e;
    animation: dotBlink 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 24px rgba(0, 166, 126, 0.15); }
    50% { box-shadow: 0 0 32px rgba(0, 166, 126, 0.28); }
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Hero visual — abstract property tower */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin: 0 auto;
}
.hero-visual-ring {
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(0, 112, 86, 0.15);
    border-radius: 50%;
    animation: ringSpin 30s linear infinite;
}
.hero-visual-ring:nth-child(2) {
    inset: 18%;
    animation-direction: reverse;
    animation-duration: 22s;
    border-color: rgba(0, 166, 126, 0.12);
}
@keyframes ringSpin {
    to { transform: rotate(360deg); }
}
.hero-visual-core {
    position: absolute;
    inset: 22%;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,252,248,0.9));
    border: 1px solid rgba(0, 112, 86, 0.12);
    box-shadow:
        0 24px 64px rgba(0, 61, 48, 0.12),
        0 0 0 1px rgba(255,255,255,0.8) inset,
        0 0 80px rgba(0, 166, 126, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    overflow: hidden;
    animation: coreFloat 6s ease-in-out infinite;
}
@keyframes coreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-visual-core::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(0,112,86,0.06), transparent);
}
.hero-building {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    height: 60%;
    position: relative;
    z-index: 1;
}
.hero-building span {
    display: block;
    background: linear-gradient(180deg, #00a67e, #003d30);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-building span:nth-child(1) { width: 28px; height: 45%; animation-delay: 0.8s; }
.hero-building span:nth-child(2) { width: 36px; height: 70%; animation-delay: 0.95s; }
.hero-building span:nth-child(3) { width: 44px; height: 100%; animation-delay: 1.1s; }
.hero-building span:nth-child(4) { width: 32px; height: 58%; animation-delay: 1.25s; }
.hero-building span:nth-child(5) { width: 24px; height: 38%; animation-delay: 1.4s; }
@keyframes barGrow {
    from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}
.hero-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}
.hero-stat {
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 112, 86, 0.06);
}
.hero-stat strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: #007056;
}
.hero-stat small {
    font-size: 0.625rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glass cards */
.glass-future {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 61, 48, 0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-future:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 112, 86, 0.14);
    border-color: rgba(0, 166, 126, 0.25);
}

.glow-border {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent, rgba(0, 166, 126, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glow-border:hover::before { opacity: 1; }

.icon-glow {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 112, 86, 0.12), rgba(0, 166, 126, 0.08));
    color: #007056;
    border: 1px solid rgba(0, 112, 86, 0.1);
    transition: all 0.35s ease;
}
.glass-future:hover .icon-glow,
.card-hover:hover .icon-glow {
    background: linear-gradient(135deg, #007056, #00a67e);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 112, 86, 0.35);
    transform: scale(1.1) rotate(-3deg);
}

/* Buttons */
.btn-glow {
    position: relative;
    background: linear-gradient(135deg, #007056, #00a67e);
    color: #fff !important;
    border: none;
    overflow: hidden;
    z-index: 1;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}
.btn-glass {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 112, 86, 0.2);
    color: #003d30 !important;
}
.btn-glass:hover {
    background: rgba(255,255,255,0.9);
    border-color: #007056;
    box-shadow: 0 8px 24px rgba(0, 112, 86, 0.12);
}

/* Section headers */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #007056;
    margin-bottom: 1rem;
}
.section-label::before,
.section-label::after {
    content: '';
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #007056);
}
.section-label::after {
    background: linear-gradient(90deg, #007056, transparent);
}

/* Bento grid */
.bento-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
    .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 1; }
}

.bento-card {
    border-radius: 1.25rem;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.bento-card:hover { transform: translateY(-4px) scale(1.01); }
.bento-card-dark {
    background: linear-gradient(145deg, #0a2e26, #0f3d32);
    color: #e2e8f0;
    border: 1px solid rgba(127, 215, 184, 0.15);
    box-shadow: 0 20px 40px rgba(0, 30, 24, 0.3);
}
.bento-card-light {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 112, 86, 0.1);
}
.bento-card-accent {
    background: linear-gradient(135deg, #007056, #00a67e);
    color: #fff;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 112, 86, 0.25);
}

/* CTA section */
.cta-future {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2e26 0%, #003d30 50%, #007056 100%);
    color: #fff;
}
.cta-future .mesh-bg::before {
    background:
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(0, 166, 126, 0.3), transparent),
        radial-gradient(ellipse 40% 60% at 80% 50%, rgba(127, 215, 184, 0.15), transparent);
}
.cta-future .grid-overlay {
    opacity: 0.4;
    mask-image: none;
    -webkit-mask-image: none;
}

/* Page heroes (inner pages) */
.page-hero-future {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #f0faf7 0%, #f8fafb 100%);
    border-bottom: 1px solid rgba(0, 112, 86, 0.08);
    overflow: hidden;
}
@media (min-width: 768px) { .page-hero-future { padding: 6rem 0 5rem; } }

/* Timeline (investment page) */
.timeline-future {
    position: relative;
    padding-left: 2.5rem;
}
.timeline-future::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #007056, rgba(0, 112, 86, 0.1));
}
.timeline-step {
    position: relative;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-step.revealed {
    opacity: 1;
    transform: translateX(0);
}
.timeline-step::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007056;
    box-shadow: 0 0 0 4px rgba(0, 112, 86, 0.15), 0 0 12px rgba(0, 166, 126, 0.4);
}

/* Tilt card */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

/* Reveal blur */
.reveal-blur {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-blur.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Marquee */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid rgba(0, 112, 86, 0.08);
    border-bottom: 1px solid rgba(0, 112, 86, 0.08);
    background: rgba(0, 112, 86, 0.03);
    padding: 0.875rem 0;
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #007056;
    white-space: nowrap;
    opacity: 0.7;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* Header upgrade */
.site-header {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 112, 86, 0.06) !important;
}

/* Counter */
[data-count] { font-variant-numeric: tabular-nums; }

/* Service page cards pulse */
.service-card-fx {
    position: relative;
    overflow: hidden;
}
.service-card-fx::after {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 166, 126, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-card-fx:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .orb, .hero-visual-ring, .hero-visual-core, .marquee-track, .btn-glow::after, .mesh-bg::before, .badge-glow { animation: none !important; }
    html.page-loading body, html.page-exiting body, html.page-enter body { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Global buttery interactions */
a, button {
    transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
main > section {
    transition: opacity 0.4s ease;
}
.btn-glow, .btn-glass {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease !important;
    min-height: 2.75rem;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
}
.btn-glow:hover, .btn-glass:hover {
    transform: translateY(-2px);
}
.btn-glow:active, .btn-glass:active {
    transform: translateY(0);
}
