@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --apple-black: #000000;
    --apple-dark: #1d1d1f;
    --apple-card-dark: #141416;
    --apple-grey: #86868b;
    --apple-light-grey: #f5f5f7;
    --apple-border: rgba(0, 0, 0, 0.08);
    --apple-border-dark: rgba(255, 255, 255, 0.12);
    --apple-green: #10b981;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
}

* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background-color: #fbfbfd;
    color: var(--apple-dark);
    overflow-x: hidden;
}

/* ==========================================================================
   Apple Luxury Glass Curtain Reveal (الستارة الزجاجية الفاخرة)
   ========================================================================== */
#intro-curtain {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 45%, #18181b 0%, #09090b 100%);
    overflow: hidden;
    pointer-events: auto;
    transition: transform 1.05s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 1.1s;
    will-change: transform;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

/* Ambient emerald glow effect behind emblem */
.curtain-ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: pulseAmbient 3.5s ease-in-out infinite alternate;
}

@keyframes pulseAmbient {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* Central Emblem */
.curtain-emblem {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.curtain-icon-wrapper {
    position: relative;
    width: 86px;
    height: 86px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: curtainIconPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes curtainIconPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.curtain-brand-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 6px;
    animation: curtainTextRise 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.curtain-brand-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    animation: curtainTextRise 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes curtainTextRise {
    0% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Elegant bottom laser edge line */
.curtain-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.8) 50%, transparent 100%);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

/* Curtain Open State - Smoothly glides upwards like a luxury theater curtain */
#intro-curtain.curtain-open {
    transform: translateY(-100%);
    pointer-events: none;
    visibility: hidden;
}

#intro-curtain.curtain-open .curtain-emblem {
    opacity: 0;
    transform: translateY(-25px) scale(0.96);
}


/* Glassmorphism Navbar */
nav {
    background-color: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Subtle Hero Motion Animations */
.hero-badge-float {
    animation: gentleBadgeFloat 5s ease-in-out infinite alternate;
}

@keyframes gentleBadgeFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-4px); }
}

/* Apple Luminous Shimmer on Text */
.apple-shimmer-text {
    background: linear-gradient(
        110deg,
        #1d1d1f 0%,
        #3b3b40 25%,
        #10b981 48%,
        #3b3b40 65%,
        #1d1d1f 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textSheen 7s ease-in-out infinite;
}

@keyframes textSheen {
    0%, 20% { background-position: 100% 0; }
    70%, 100% { background-position: -100% 0; }
}

/* Subtle Breathing Ambient Aura */
.hero-ambient-aura {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 380px;
    background: radial-gradient(
        circle,
        rgba(16, 185, 129, 0.12) 0%,
        rgba(0, 113, 227, 0.06) 40%,
        rgba(255, 255, 255, 0) 70%
    );
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: auraPulse 8s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.95;
    }
}

/* Micro-interaction on CTA Buttons */
.hero-cta-btn {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 10px 25px -5px rgba(0, 113, 227, 0.25);
}
.hero-cta-btn:active {
    transform: translateY(0px) scale(0.985);
}

.hero-cta-btn svg {
    transition: transform 0.25s ease;
}
.hero-cta-btn:hover svg {
    transform: translateX(3px);
}

.hero-secondary-btn {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.hero-secondary-btn:hover {
    transform: translateY(-2px);
    background-color: #f5f5f7;
}
.hero-secondary-btn:active {
    transform: translateY(0px);
}

/* 3D Floating Financial Card Parallax */
.perspective-stage {
    perspective: 1400px;
    transform-style: preserve-3d;
}

.titanium-card-wrap {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.titanium-card {
    background: linear-gradient(135deg, #2a2a2e 0%, #151518 50%, #1c1c20 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 24px rgba(16, 185, 129, 0.15);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.floating-pill {
    animation: pillFloat 6s ease-in-out infinite alternate;
}

.pill-delay-1 {
    animation-delay: -2s;
}

.pill-delay-2 {
    animation-delay: -4s;
}

@keyframes pillFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-12px) rotate(1deg);
    }
}

/* Apple Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    margin-top: -11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3), 0 0 0 2px #0071e3;
}

input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.08);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e5e5ea;
    border-radius: 3px;
    transition: background 0.3s ease;
}

input[type=range]:focus {
    outline: none;
}

/* Custom Notification Toast */
.apple-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(16px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    pointer-events: none;
}

.apple-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Minimalist Marquee */
.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Review Filter Active State */
.review-filter-btn.active {
    background-color: var(--apple-dark) !important;
    color: #ffffff !important;
    border-color: var(--apple-dark) !important;
}


