/* Medlink intro — modern HealthTech layer (Bootstrap grid + existing theme tokens) */

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

html.intro-landing {
    --ml-purple: #7c3aed;
    --ml-purple-soft: #a78bfa;
    --ml-purple-muted: rgba(124, 58, 237, 0.12);
    --ml-slate: #0f172a;
    --ml-slate-muted: #475569;
    --ml-glass: rgba(255, 255, 255, 0.72);
    --ml-glass-border: rgba(255, 255, 255, 0.55);
    --ml-radius-lg: 1.25rem;
    --ml-radius-xl: 1.75rem;
    --ml-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --ml-shadow-hover: 0 28px 64px rgba(124, 58, 237, 0.18);
}

html.intro-landing,
html.intro-landing body {
    font-family: 'Tajawal', 'Cairo', 'JF Flat', sans-serif;
    color: var(--ml-slate-muted);
    background: #f8fafc;
}

html.intro-landing .intro-main,
html.intro-landing .body-content {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

html.intro-landing .intro-main::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 90% 0%, rgba(var(--primary-rgb, 124, 58, 237), 0.10), transparent 55%),
        radial-gradient(ellipse 55% 45% at 5% 30%, rgba(var(--accent-rgb, 59, 130, 246), 0.08), transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 100%, rgba(var(--primary-rgb, 167, 139, 250), 0.06), transparent 45%);
}

/* Sticky glass nav */
html.intro-landing header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.75rem 0 !important;
}

html.intro-landing .intro-nav-shell {
    background: color-mix(in srgb, var(--bg-card, rgba(255, 255, 255, 0.75)) 85%, transparent) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.35)) 65%, transparent) !important;
    border-radius: 999px;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb, 15, 23, 42), 0.10) !important;
    overflow: visible !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

html.intro-landing header.is-scrolled .intro-nav-shell {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

html.intro-landing .intro-header-row {
    gap: 0.75rem;
}

html.intro-landing .nav_bar li a {
    position: relative;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

html.intro-landing .nav_bar li a:hover,
html.intro-landing .nav_bar li a.active {
    background: color-mix(in srgb, var(--primary, #6D5BD0) 14%, transparent) !important;
    color: var(--primary, #6D5BD0) !important;
}

@media (min-width: 992px) {
    html.intro-landing #intro-site-header .container {
        max-width: 1360px;
        width: 96%;
    }

    html.intro-landing .intro-header-row {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: clamp(0.5rem, 1vw, 1.25rem) !important;
    }

    html.intro-landing .intro-logo {
        flex-shrink: 0;
    }

    html.intro-landing .nav_bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: clamp(0.2rem, 0.6vw, 0.85rem) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html.intro-landing .nav_bar li {
        white-space: nowrap !important;
        flex-shrink: 0;
        margin: 0 !important;
    }

    html.intro-landing .nav_bar li a {
        white-space: nowrap !important;
        font-size: clamp(0.82rem, 0.86vw, 0.92rem) !important;
        padding: 0.38rem clamp(0.35rem, 0.5vw, 0.65rem) !important;
        letter-spacing: -0.01em;
    }

    html.intro-landing .intro-header-tools {
        flex-shrink: 0 !important;
        gap: clamp(0.35rem, 0.45vw, 0.55rem) !important;
    }

    html.intro-landing .intro-header-tools .intro-nav-cta {
        padding: 0.45rem clamp(0.7rem, 0.85vw, 1.1rem) !important;
        font-size: clamp(0.8rem, 0.84vw, 0.875rem) !important;
        white-space: nowrap !important;
    }

    html.intro-landing .intro-header-tools .dropdown-toggle {
        padding: 0.38rem clamp(0.5rem, 0.65vw, 0.8rem) !important;
        font-size: clamp(0.8rem, 0.84vw, 0.86rem) !important;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap !important;
    }
}

html.intro-landing .intro-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: var(--gradient, linear-gradient(135deg, var(--primary, #6D5BD0), var(--primary-dark, #4C3FB1))) !important;
    color: var(--text-on-primary, #fff) !important;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(var(--primary-rgb, 124, 58, 237), 0.38) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html.intro-landing .intro-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(var(--primary-rgb, 124, 58, 237), 0.48) !important;
    color: var(--text-on-primary, #fff) !important;
    text-decoration: none;
}

/* Sections & Sticky Header Anchors */
html.intro-landing .sec-padd,
html.intro-landing [id] {
    scroll-margin-top: 88px;
}

html.intro-landing .sec-padd {
    padding: 4.25rem 0;
}

html.intro-landing .section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 2.5rem;
}

html.intro-landing .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--ml-purple-muted);
    color: var(--ml-purple);
    margin-bottom: 0.75rem;
}

html.intro-landing .section-title {
    color: var(--ml-slate);
    font-weight: 700;
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
    line-height: 1.35;
}

html.intro-landing .text-accent {
    color: var(--intro-cyan, var(--ml-purple));
}

/* Hero */
html.intro-landing .hero-section {
    min-height: min(92vh, 880px);
    display: flex;
    align-items: center;
    padding: 6rem 0 3rem;
    position: relative;
}

html.intro-landing .hero-download .ads_wol {
    position: relative;
    z-index: 2;
}

html.intro-landing .hero-title {
    font-weight: 700;
    color: var(--ml-slate);
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.25;
}

html.intro-landing .hero-title-accent {
    background: linear-gradient(135deg, var(--intro-cyan, var(--ml-purple)), var(--ml-purple-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html.intro-landing .hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 1.25rem 0 1.75rem;
    color: var(--ml-slate-muted);
}

html.intro-landing .hero-float-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

html.intro-landing .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ml-glass);
    border: 1px solid var(--ml-glass-border);
    backdrop-filter: blur(8px);
    animation: ml-float 4s ease-in-out infinite;
}

html.intro-landing .hero-badge:nth-child(2) {
    animation-delay: 0.8s;
}

html.intro-landing .hero-badge:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes ml-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

html.intro-landing .img_owl_index {
    position: relative;
    animation: ml-float 5s ease-in-out infinite;
}

html.intro-landing .img_owl_index img {
    max-width: 100%;
    filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.15));
}

html.intro-landing {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

html.intro-landing body {
    overflow-x: hidden;
    min-height: 100vh;
    touch-action: pan-y;
}

/* ==========================================================================
   MEDLINK PANORAMIC HERO SLIDER (PRODUCTION-READY REDESIGN)
   - Matching the visual reference design:
     * Full-width background image per slide (~2.8:1 desktop aspect ratio)
     * Rounded outer corners (~28px)
     * Seamless dark navy-to-violet overlay: strongest behind text on the right (RTL),
       fading smoothly toward the medical subject on the left
     * Bold, crisp white Arabic title & softer white readable description
     * Compact bottom-right controls dock: circular arrows & slide indicators
     * Smooth 650ms crossfade transition & responsive touch/drag support
   ========================================================================== */

html.intro-landing .medlink-hero-section {
    position: relative;
    width: 100%;
    padding: 1.25rem 0 2.25rem !important;
    margin: 0 !important;
    overflow: visible;
}

html.intro-landing .medlink-hero-container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding-inline: 1.5rem;
}

@media (max-width: 991.98px) {
    html.intro-landing .medlink-hero-container {
        padding-inline: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    html.intro-landing .medlink-hero-container {
        padding-inline: 0.85rem;
    }
}

/* Panoramic Slider Shell - Scaled up for more prominent cinematic presence */
html.intro-landing .medlink-hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2.15 / 1;
    min-height: 560px;
    max-height: 700px;
    border-radius: 32px;
    overflow: hidden;
    background-color: #090d21;
    box-shadow: 0 32px 85px -12px rgba(9, 13, 33, 0.52), 0 16px 36px -8px rgba(0, 0, 0, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y !important;
    isolation: isolate;
}

html.intro-landing.light-style .medlink-hero-slider {
    box-shadow: 0 26px 70px -12px rgba(15, 23, 42, 0.24), 0 12px 28px -8px rgba(15, 23, 42, 0.14);
}

@media (max-width: 1199.98px) {
    html.intro-landing .medlink-hero-slider {
        aspect-ratio: 2.1 / 1;
        min-height: 500px;
    }
}

@media (max-width: 991.98px) {
    html.intro-landing .medlink-hero-slider {
        aspect-ratio: 1.95 / 1;
        min-height: 440px;
        border-radius: 26px;
    }
}

@media (max-width: 767.98px) {
    html.intro-landing .medlink-hero-slider {
        aspect-ratio: auto;
        min-height: 450px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    html.intro-landing .medlink-hero-slider {
        min-height: 460px;
        border-radius: 18px;
    }
}

/* Track holding stacked slides */
html.intro-landing .medlink-hero-slider__track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Individual Slide (Absolute stacking for true 650ms crossfade) */
html.intro-landing .medlink-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1), visibility 650ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

html.intro-landing .medlink-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Precomposed hero art (1720×800) — phone + gradient baked in */
html.intro-landing .medlink-hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
    z-index: 0;
    transform: scale(1);
    transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    pointer-events: none;
}

html.intro-landing .medlink-hero-slide.is-active .medlink-hero-slide__bg {
    transform: scale(1.02);
}

html.intro-landing[dir='ltr'] .medlink-hero-slide__bg {
    background-position: right center;
    transform: scaleX(-1);
}

html.intro-landing[dir='ltr'] .medlink-hero-slide.is-active .medlink-hero-slide__bg {
    transform: scaleX(-1) scale(1.02);
}

html.intro-landing .medlink-hero-slide__bg--fallback {
    background:
        radial-gradient(ellipse at 80% 30%, rgba(var(--primary-rgb, 109, 91, 208), 0.35), transparent 70%),
        radial-gradient(ellipse at 20% 70%, rgba(59, 130, 246, 0.2), transparent 70%),
        linear-gradient(135deg, #090d21 0%, #141b3a 100%);
}

html.intro-landing .medlink-hero-slide__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

html.intro-landing[dir='rtl'] .medlink-hero-slide__overlay {
    background: linear-gradient(
        270deg,
        rgba(8, 11, 30, 0.72) 0%,
        rgba(8, 11, 30, 0.5) 40%,
        rgba(8, 11, 30, 0.12) 54%,
        transparent 68%
    );
}

html.intro-landing[dir='ltr'] .medlink-hero-slide__overlay {
    background: linear-gradient(
        90deg,
        rgba(8, 11, 30, 0.72) 0%,
        rgba(8, 11, 30, 0.5) 40%,
        rgba(8, 11, 30, 0.12) 54%,
        transparent 68%
    );
}

html.intro-landing .medlink-hero-slide__content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem) clamp(4.75rem, 7vw, 6.25rem);
    box-sizing: border-box;
}

/* flex-start = يمين في RTL، يسار في LTR (حسب dir على html) */
html.intro-landing .medlink-hero-slide__content-wrap {
    justify-content: flex-start;
}

html.intro-landing[dir='rtl'] .medlink-hero-slide__content-wrap {
    text-align: right;
}

html.intro-landing[dir='ltr'] .medlink-hero-slide__content-wrap {
    text-align: left;
}

html.intro-landing .medlink-hero-slide__content {
    max-width: min(36rem, 44%);
    width: 100%;
    margin-inline: 0;
}

@media (max-width: 991.98px) {
    html.intro-landing .medlink-hero-slide__content {
        max-width: min(38rem, 58%);
    }

    html.intro-landing .medlink-hero-slide__content-wrap {
        padding: 2.25rem 2rem 5.5rem;
    }
}

@media (max-width: 767.98px) {
    html.intro-landing .medlink-hero-slide__bg {
        background-position: 28% center;
    }

    html.intro-landing[dir='rtl'] .medlink-hero-slide__overlay,
    html.intro-landing[dir='ltr'] .medlink-hero-slide__overlay {
        background: linear-gradient(
            to top,
            rgba(9, 13, 33, 0.96) 0%,
            rgba(9, 13, 33, 0.82) 45%,
            rgba(9, 13, 33, 0.45) 72%,
            rgba(9, 13, 33, 0.15) 100%
        );
    }

    html.intro-landing .medlink-hero-slide__content-wrap {
        align-items: flex-end;
        padding: 2rem 1.35rem 5.75rem;
    }

    html.intro-landing .medlink-hero-slide__content {
        max-width: 100%;
    }

    html.intro-landing[dir='rtl'] .medlink-hero-slide__content-wrap {
        text-align: right;
    }

    html.intro-landing[dir='ltr'] .medlink-hero-slide__content-wrap {
        text-align: left;
    }

    html.intro-landing .medlink-hero-slide__content {
        max-width: 100%;
        margin-inline: 0;
    }
}

/* Large Bold Title - Scaled up */
html.intro-landing.light-style .medlink-hero-slide__title {
    color: #0f172a;
    text-shadow: none;
}

html.intro-landing.light-style .medlink-hero-slide__desc {
    color: rgba(15, 23, 42, 0.78);
    text-shadow: none;
}

html.intro-landing .medlink-hero-slide__title {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(2.35rem, 3.5vw, 3.35rem);
    line-height: 1.32;
    letter-spacing: -0.015em;
    margin: 0 0 1.35rem 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease 0.12s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

html.intro-landing .medlink-hero-slide.is-active .medlink-hero-slide__title {
    opacity: 1;
    transform: translateY(0);
}

/* Readable Description below Title - Scaled up */
html.intro-landing .medlink-hero-slide__desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.1rem, 1.35vw, 1.25rem);
    line-height: 1.85;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    word-break: break-word;
    max-width: 640px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease 0.25s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

html.intro-landing .medlink-hero-slide.is-active .medlink-hero-slide__desc {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Controls: Circular arrows & compact indicators near bottom-right */
html.intro-landing .medlink-hero-controls {
    position: absolute;
    bottom: 38px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 6px;
    pointer-events: auto;
    user-select: none;
    direction: ltr !important; /* Enforces strict visual order: [ < ] [ • • • ] [ > ] [ || ] so arrows point outward */
}

html.intro-landing[dir='rtl'] .medlink-hero-controls {
    right: clamp(20px, 5vw, 64px);
    left: auto;
}

html.intro-landing[dir='ltr'] .medlink-hero-controls {
    left: clamp(20px, 5vw, 64px);
    right: auto;
}

@media (max-width: 991.98px) {
    html.intro-landing .medlink-hero-controls {
        bottom: 26px;
        gap: 12px;
    }
    html.intro-landing[dir='rtl'] .medlink-hero-controls {
        right: 36px;
    }
    html.intro-landing[dir='ltr'] .medlink-hero-controls {
        left: 36px;
    }
}

@media (max-width: 767.98px) {
    html.intro-landing .medlink-hero-controls {
        bottom: 18px;
        gap: 8px;
    }
    html.intro-landing[dir='rtl'] .medlink-hero-controls {
        right: 20px;
    }
    html.intro-landing[dir='ltr'] .medlink-hero-controls {
        left: 20px;
    }
}

/* Circular Arrow Buttons - Prominent & accessible */
html.intro-landing .medlink-hero-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

html.intro-landing .medlink-hero-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html.intro-landing .medlink-hero-btn:active {
    transform: scale(0.95);
}

html.intro-landing .medlink-hero-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

html.intro-landing .medlink-hero-btn .medlink-hero-arrow {
    display: block;
    stroke: currentColor;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    html.intro-landing .medlink-hero-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Compact Slide Indicators / Dots */
html.intro-landing .medlink-hero-indicators {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 4px;
}

html.intro-landing .medlink-hero-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

html.intro-landing .medlink-hero-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

html.intro-landing .medlink-hero-dot.is-active {
    width: 10px;
    height: 10px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

html.intro-landing .medlink-hero-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    html.intro-landing .medlink-hero-dot {
        position: relative;
        width: 8px;
        height: 8px;
    }
    html.intro-landing .medlink-hero-dot::after {
        content: '';
        position: absolute;
        top: -12px;
        bottom: -12px;
        left: -8px;
        right: -8px;
    }
    html.intro-landing .medlink-hero-dot.is-active {
        width: 10px;
        height: 10px;
    }
}

/* Discreet Playback Control Button */
html.intro-landing .medlink-hero-btn--playback {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    opacity: 0.65;
    margin-inline-start: 4px;
}

html.intro-landing .medlink-hero-btn--playback:hover {
    opacity: 1;
}

@media (max-width: 767.98px) {
    html.intro-landing .medlink-hero-btn--playback {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    html.intro-landing .medlink-hero-slide,
    html.intro-landing .medlink-hero-slide__bg,
    html.intro-landing .medlink-hero-slide__title,
    html.intro-landing .medlink-hero-slide__desc {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}



/* ==========================================================================
   MEDLINK RESPONSIVE DESIGN REFERENCE IMPLEMENTATION (SECTIONS BELOW HERO)
   ========================================================================== */

/* Section Head & Badges */
html.intro-landing .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--primary, #6D5BD0) 10%, transparent);
    color: var(--primary, #6D5BD0);
    margin-bottom: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--primary, #6D5BD0) 18%, transparent);
}

html.intro-landing .badge-dash {
    font-weight: 700;
    opacity: 0.85;
}

html.intro-landing .section-title {
    color: var(--text-main, #1F2937);
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.35;
    letter-spacing: -0.015em;
}

html.intro-landing .section-sub {
    color: var(--text-muted, #64748B);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   1. About Section (عن المنصة)
   -------------------------------------------------------------------------- */
html.intro-landing #who_we {
    position: relative;
}

html.intro-landing .about-copy-wrap {
    padding-inline-end: clamp(1rem, 3vw, 2.5rem);
}

html.intro-landing .about-title {
    margin-bottom: 1.25rem;
}

html.intro-landing .about-body.about-html {
    color: var(--text-muted, #64748B);
    font-size: clamp(0.98rem, 1.25vw, 1.08rem);
    line-height: 1.85;
    font-weight: 400;
}

html.intro-landing .about-visual-showcase {
    position: relative;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

html.intro-landing .about-visual-backdrop {
    position: absolute;
    inset: -5% -5%;
    border-radius: 36px;
    background: radial-gradient(ellipse 80% 65% at 50% 50%, color-mix(in srgb, var(--primary, #6D5BD0) 12%, transparent), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

html.intro-landing .about-cards-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

html.intro-landing .about-card-layer {
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

html.intro-landing .about-card-layer--back {
    position: absolute;
    top: 5%;
    inset-inline-end: 2%;
    width: 66%;
    height: 82%;
    transform: rotate(4deg);
    opacity: 0.94;
    z-index: 1;
}

html.intro-landing .about-card-layer--front {
    position: relative;
    width: 74%;
    margin-inline-start: -8%;
    transform: rotate(-2deg);
    z-index: 2;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

html.intro-landing .about-cards-stack:hover .about-card-layer--back {
    transform: rotate(6deg) scale(1.02);
}

html.intro-landing .about-cards-stack:hover .about-card-layer--front {
    transform: rotate(0deg) scale(1.03);
}

html.intro-landing .about-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

html.intro-landing .about-sphere-accent {
    position: absolute;
    top: -15px;
    inset-inline-start: 4%;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), rgba(var(--primary-rgb, 109, 91, 208), 0.28) 85%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 109, 91, 208), 0.22);
    z-index: 3;
    pointer-events: none;
    animation: aboutSphereFloat 18s ease-in-out infinite;
}

@keyframes aboutSphereFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, 14px, 0); }
}

@media (max-width: 991px) {
    html.intro-landing .about-copy-wrap {
        padding-inline-end: 0;
        margin-bottom: 2rem;
        text-align: start;
    }
    html.intro-landing .about-cards-stack {
        max-width: 360px;
        min-height: 240px;
    }
}

/* --------------------------------------------------------------------------
   2. Services Section (خدمات متكاملة)
   -------------------------------------------------------------------------- */
html.intro-landing #our_service {
    position: relative;
}

html.intro-landing .services-side-layout {
    gap: 1.5rem 0;
}

html.intro-landing .services-side-head {
    padding-inline-end: clamp(1rem, 2.5vw, 2rem);
}

html.intro-landing .services-balanced-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

html.intro-landing .services-balanced-grid.services-count-1 {
    grid-template-columns: minmax(280px, 460px);
}

html.intro-landing .services-responsive-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    html.intro-landing .services-responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    html.intro-landing .services-side-head {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 639px) {
    html.intro-landing .services-responsive-grid,
    html.intro-landing .services-balanced-grid {
        grid-template-columns: 1fr;
    }
}

html.intro-landing .service-ref-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.22));
    border-radius: 22px;
    padding: 1.75rem 1.6rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

html.intro-landing .service-ref-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow, 0 16px 36px rgba(var(--primary-rgb, 109, 91, 208), 0.12));
    border-color: color-mix(in srgb, var(--primary, #6D5BD0) 35%, var(--border, #E6E8F0));
}

html.intro-landing .service-ref-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

html.intro-landing .service-ref-card__num {
    font-size: 1.85rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary, #6D5BD0) 38%, transparent);
    font-family: monospace, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.04em;
    line-height: 1;
}

html.intro-landing .service-ref-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary, #6D5BD0) 12%, transparent);
    color: var(--primary, #6D5BD0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

html.intro-landing .service-ref-card:hover .service-ref-card__icon {
    background: var(--gradient, linear-gradient(135deg, var(--primary, #6D5BD0), var(--primary-dark, #4C3FB1)));
    color: var(--text-on-primary, #ffffff);
    transform: scale(1.08) rotate(-4deg);
}

html.intro-landing .service-ref-card__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main, #1F2937);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

html.intro-landing .service-ref-card__desc {
    font-size: 0.92rem;
    color: var(--text-muted, #64748B);
    line-height: 1.65;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. How It Works Section (كيف يعمل ميدلينك)
   -------------------------------------------------------------------------- */
html.intro-landing #how_work {
    position: relative;
}

html.intro-landing .how-work-intro-col {
    padding-inline-end: clamp(1rem, 3vw, 2.5rem);
}

@media (min-width: 992px) {
    html.intro-landing .how-work-intro-sticky {
        position: sticky;
        top: 100px;
    }
}

html.intro-landing .how-work-title {
    margin-bottom: 1.15rem;
}

html.intro-landing .how-work-desc {
    color: var(--text-muted, #64748B);
    font-size: 1rem;
    line-height: 1.75;
}

html.intro-landing .how-work-sphere-accent {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), rgba(var(--primary-rgb, 109, 91, 208), 0.28) 85%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 109, 91, 208), 0.22);
    margin-top: 2rem;
    animation: howWorkSphereFloat 20s ease-in-out infinite;
}

@keyframes howWorkSphereFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(12px, -14px, 0); }
}

html.intro-landing .how-work-step-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    position: relative;
}

html.intro-landing .how-work-step-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.22));
    border-radius: 18px;
    padding: 0.9rem 1.35rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Repeating bounded desktop offsets */
@media (min-width: 992px) {
    html.intro-landing .how-work-step-row.step-offset-0 { margin-inline-start: 0; }
    html.intro-landing .how-work-step-row.step-offset-1 { margin-inline-start: 24px; }
    html.intro-landing .how-work-step-row.step-offset-2 { margin-inline-start: 44px; }
    html.intro-landing .how-work-step-row.step-offset-3 { margin-inline-start: 20px; }
}

@media (max-width: 991px) {
    html.intro-landing .how-work-step-row {
        margin-inline-start: 0 !important;
    }
    html.intro-landing .how-work-intro-col {
        margin-bottom: 2rem;
        padding-inline-end: 0;
    }
}

html.intro-landing .how-work-step-row:hover,
html.intro-landing .how-work-step-row.is-active-step {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb, 109, 91, 208), 0.12);
    border-color: color-mix(in srgb, var(--primary, #6D5BD0) 45%, var(--border, #E6E8F0));
}

html.intro-landing .step-row__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

html.intro-landing .step-row__num {
    font-size: 1.35rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary, #6D5BD0) 70%, var(--text-main, #1F2937));
    font-family: monospace, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1;
}

html.intro-landing .step-row__sep {
    display: inline-block;
    width: 1.5px;
    height: 20px;
    background: color-mix(in srgb, var(--border, #E6E8F0) 75%, var(--primary, #6D5BD0) 25%);
}

html.intro-landing .step-row__content {
    flex: 1 1 auto;
    min-width: 0;
}

html.intro-landing .step-row__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main, #1F2937);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

html.intro-landing .step-row__desc {
    font-size: 0.88rem;
    color: var(--text-muted, #64748B);
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

html.intro-landing .step-row__media {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary, #6D5BD0) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

html.intro-landing .step-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html.intro-landing .step-row__icon-fallback i {
    color: var(--primary, #6D5BD0);
    font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   4. FAQ Section (الأسئلة الشائعة)
   -------------------------------------------------------------------------- */
html.intro-landing #FAQ {
    position: relative;
}

html.intro-landing .faq-categories-col {
    padding-inline-end: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 992px) {
    html.intro-landing .faq-categories-sticky {
        position: sticky;
        top: 100px;
    }
}

html.intro-landing #FAQ .faq-pills-list,
html.intro-landing .faq-pills-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
}

@media (max-width: 991px) {
    html.intro-landing #FAQ .faq-pills-list,
    html.intro-landing .faq-pills-list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.65rem !important;
        margin-bottom: 1.5rem !important;
    }
    html.intro-landing .faq-categories-col {
        padding-inline-end: 0;
    }
}

html.intro-landing #FAQ .faq-pill-item,
html.intro-landing .faq-pill-item {
    margin: 0 !important;
    width: auto !important;
    display: block !important;
}

html.intro-landing #FAQ .nav-pills .nav-link,
html.intro-landing .fqs-tabs-wrapper .nav-pills .nav-link,
html.intro-landing .faq-pill-link {
    border-radius: 999px !important;
    padding: 0.95rem 2.15rem !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    min-width: 235px !important;
    width: max-content !important;
    max-width: 100% !important;
    min-height: 52px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid var(--border, rgba(148, 163, 184, 0.28)) !important;
    color: var(--text-main, #1F2937) !important;
    background: var(--bg-card, #ffffff) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

@media (max-width: 991px) {
    html.intro-landing #FAQ .nav-pills .nav-link,
    html.intro-landing .fqs-tabs-wrapper .nav-pills .nav-link,
    html.intro-landing .faq-pill-link {
        min-width: 140px !important;
        width: auto !important;
        white-space: normal !important;
        min-height: auto !important;
        padding: 0.7rem 1.35rem !important;
        font-size: 0.96rem !important;
    }
}

html.intro-landing #FAQ .nav-pills .nav-link:hover,
html.intro-landing .faq-pill-link:hover {
    background: color-mix(in srgb, var(--primary, #6D5BD0) 10%, var(--bg-card, #ffffff)) !important;
    border-color: var(--primary, #6D5BD0) !important;
    color: var(--primary, #6D5BD0) !important;
}

html.intro-landing #FAQ .nav-pills .nav-link.active,
html.intro-landing .faq-pill-link.active {
    background: var(--gradient, linear-gradient(135deg, var(--primary, #6D5BD0), var(--primary-dark, #4C3FB1))) !important;
    color: var(--text-on-primary, #ffffff) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 109, 91, 208), 0.35) !important;
}

html.intro-landing #FAQ .tab-content > .tab-pane {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

html.intro-landing #FAQ .tab-content > .tab-pane:not(.active) {
    display: none;
    opacity: 0;
    transform: translateY(6px);
}

html.intro-landing #FAQ .tab-content > .tab-pane.active {
    display: block;
}

html.intro-landing #FAQ .tab-content > .tab-pane.active.show {
    opacity: 1;
    transform: translateY(0);
}

html.intro-landing .faq-ref-item {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.22));
    border-radius: 18px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html.intro-landing .faq-ref-item:hover {
    border-color: color-mix(in srgb, var(--primary, #6D5BD0) 35%, var(--border, #E6E8F0));
}

html.intro-landing .faq-ref-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: transparent;
    border: none;
    text-align: start;
    color: var(--text-main, #1F2937);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

html.intro-landing .faq-ref-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary, #6D5BD0) 12%, transparent);
    color: var(--primary, #6D5BD0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

html.intro-landing .faq-ref-head.collapsed .faq-icon-minus { display: none; }
html.intro-landing .faq-ref-head.collapsed .faq-icon-plus { display: inline-block; }
html.intro-landing .faq-ref-head:not(.collapsed) .faq-icon-minus { display: inline-block; }
html.intro-landing .faq-ref-head:not(.collapsed) .faq-icon-plus { display: none; }
html.intro-landing .faq-ref-head:not(.collapsed) .faq-ref-toggle {
    background: var(--gradient, linear-gradient(135deg, var(--primary), var(--primary-dark)));
    color: #ffffff;
}

html.intro-landing .faq-ref-q {
    flex: 1 1 auto;
}

html.intro-landing .faq-ref-body-inner {
    padding: 0 1.35rem 1.25rem 3.5rem;
    color: var(--text-muted, #64748B);
    font-size: 0.95rem;
    line-height: 1.8;
}

[dir="rtl"] html.intro-landing .faq-ref-body-inner {
    padding: 0 3.5rem 1.25rem 1.35rem;
}

/* --------------------------------------------------------------------------
   5. Partners Section (شركاء النجاح)
   -------------------------------------------------------------------------- */
html.intro-landing #parteners {
    position: relative;
}

html.intro-landing .partners-ref-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

html.intro-landing .partner-ref-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
    border-radius: 18px;
    padding: 1rem 1.75rem;
    min-height: 76px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.intro-landing .partner-ref-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow, 0 12px 28px rgba(15, 23, 42, 0.08));
}

html.intro-landing .partner-ref-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.85);
    opacity: 0.85;
    transition: all 0.3s ease;
}

html.intro-landing .partner-ref-card:hover .partner-ref-img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   6. Contact Us Section (تواصل معنا)
   -------------------------------------------------------------------------- */
html.intro-landing #connect_us {
    position: relative;
}

html.intro-landing .contact-sculpted-wrapper {
    position: relative;
    margin-top: 1rem;
}

html.intro-landing .contact-corner-sphere {
    position: absolute;
    top: -22px;
    inset-inline-start: -14px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    animation: contactSphereFloat 22s ease-in-out infinite;
}

html.intro-landing .contact-corner-sphere__body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), rgba(var(--primary-rgb, 109, 91, 208), 0.32) 85%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb, 109, 91, 208), 0.28);
}

@keyframes contactSphereFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, 12px, 0); }
}

html.intro-landing .contact-sculpted-panel {
    background: linear-gradient(145deg, var(--bg-sidebar, #332A7C) 0%, color-mix(in srgb, var(--bg-sidebar, #332A7C) 80%, var(--primary, #6D5BD0) 20%) 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: clamp(2.25rem, 4.5vw, 3.75rem);
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    overflow: visible;
}

/* Fluid sculpted cutout revealing actual background & shifting form away from curve */
@media (min-width: 992px) {
    html[dir="rtl"].intro-landing .contact-sculpted-panel {
        -webkit-mask-image: radial-gradient(circle 88px at 0% 0%, transparent 0, transparent 87px, #000 88px);
        mask-image: radial-gradient(circle 88px at 0% 0%, transparent 0, transparent 87px, #000 88px);
    }
    html[dir="ltr"].intro-landing .contact-sculpted-panel {
        -webkit-mask-image: radial-gradient(circle 88px at 100% 0%, transparent 0, transparent 87px, #000 88px);
        mask-image: radial-gradient(circle 88px at 100% 0%, transparent 0, transparent 87px, #000 88px);
    }
    html.intro-landing .contact-form-inner {
        padding-inline-end: clamp(2.5rem, 4vw, 4.25rem);
        padding-top: clamp(1.25rem, 2.2vw, 2.25rem);
    }
}

@media (max-width: 991px) {
    html.intro-landing .contact-sculpted-panel {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        border-radius: 24px;
        padding: 2rem 1.5rem;
    }
    html.intro-landing .contact-corner-sphere {
        width: 60px;
        height: 60px;
        top: -16px;
        inset-inline-start: -8px;
    }
    html.intro-landing .contact-form-inner {
        padding: 0 !important;
    }
    html.intro-landing .contact-info-col {
        margin-bottom: 2rem;
    }
}

html.intro-landing .contact-badge {
    color: color-mix(in srgb, #ffffff 80%, var(--primary-light, #ECE9FF));
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

html.intro-landing .contact-title {
    color: #ffffff;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.75rem;
}

html.intro-landing .contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

html.intro-landing .contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
}

html.intro-landing .contact-detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

html.intro-landing .contact-detail-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

html.intro-landing .contact-detail-link:hover {
    color: #ffffff;
    opacity: 0.85;
    text-decoration: underline;
}

/* Contact Form */
html.intro-landing .contact-form-group {
    position: relative;
    margin-bottom: 1.15rem;
}

html.intro-landing .contact-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

html.intro-landing .contact-field-icon {
    position: absolute;
    inset-inline-end: 1.25rem;
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

html.intro-landing .contact-field-icon--textarea {
    top: 1.15rem;
}

html.intro-landing .contact-ref-control {
    width: 100%;
    border-radius: 999px;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1.5px solid transparent;
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
    padding-inline-start: 1.35rem;
    padding-inline-end: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[dir="rtl"].intro-landing .contact-ref-control,
html[dir="rtl"].intro-landing #contact-phone,
html[dir="rtl"].intro-landing input[type="tel"] {
    text-align: right !important;
}

html[dir="rtl"].intro-landing #contact-phone,
html[dir="rtl"].intro-landing input[type="tel"] {
    direction: rtl !important;
}

html[dir="rtl"].intro-landing #contact-phone::placeholder,
html[dir="rtl"].intro-landing input[type="tel"]::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

html[dir="rtl"].intro-landing #contact-phone:focus,
html[dir="rtl"].intro-landing #contact-phone:not(:placeholder-shown) {
    direction: ltr !important;
    text-align: right !important;
}

html[dir="ltr"].intro-landing .contact-ref-control,
html[dir="ltr"].intro-landing #contact-phone,
html[dir="ltr"].intro-landing input[type="tel"] {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="ltr"].intro-landing #contact-phone::placeholder,
html[dir="ltr"].intro-landing input[type="tel"]::placeholder {
    text-align: left !important;
    direction: ltr !important;
}

html.intro-landing .contact-ref-control::placeholder {
    color: #94a3b8;
}

html.intro-landing .contact-ref-control:focus {
    border-color: var(--primary, #6D5BD0);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 109, 91, 208), 0.28);
    outline: none;
}

html.intro-landing .contact-ref-textarea {
    border-radius: 18px !important;
    resize: vertical;
    min-height: 105px;
}

html.intro-landing .contact-char-count {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 500;
}

html.intro-landing .contact-ref-submit {
    background: var(--gradient, linear-gradient(135deg, var(--primary, #6D5BD0), var(--primary-dark, #4C3FB1))) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.88rem 2rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html.intro-landing .contact-ref-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
}

html.intro-landing .intro-contact-form__errors {
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   7. Footer Section — Modern Reference Redesign
   -------------------------------------------------------------------------- */
html.intro-landing .intro-footer {
    position: relative;
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(var(--primary-rgb, 109, 91, 208), 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 0% 45%, rgba(var(--primary-rgb, 109, 91, 208), 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 100% 45%, rgba(var(--primary-rgb, 109, 91, 208), 0.14) 0%, transparent 70%),
        #060818;
    color: #e2e8f0;
    border-top: 1px solid rgba(var(--primary-rgb, 109, 91, 208), 0.22);
    border-radius: 28px 28px 0 0;
    margin-top: 3.5rem;
    padding: 3.5rem 0 1.25rem;
    overflow: hidden;
    z-index: 2;
}

/* Atmospheric glow & wave decorations */
html.intro-landing .intro-footer__ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% -20%, rgba(var(--primary-rgb, 109, 91, 208), 0.25), transparent 60%);
    z-index: 0;
}

html.intro-landing .intro-footer__decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

html.intro-landing .intro-footer__waves {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

html.intro-landing .intro-footer .container {
    position: relative;
    z-index: 2;
}

/* Three-column layout */
html.intro-landing .intro-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

/* Headings */
html.intro-landing .intro-footer__title {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

/* Column 1: Brand block */
html.intro-landing .intro-footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

html.intro-landing[dir="rtl"] .intro-footer__col--brand {
    align-items: flex-start;
    text-align: right;
}

html.intro-landing[dir="ltr"] .intro-footer__col--brand {
    align-items: flex-start;
    text-align: left;
}

html.intro-landing .intro-footer__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    text-decoration: none;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__brand:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(var(--primary-rgb, 109, 91, 208), 0.45);
        box-shadow: 0 4px 16px rgba(var(--primary-rgb, 109, 91, 208), 0.2);
    }
}

html.intro-landing .intro-footer__brand:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

html.intro-landing .intro-footer__brand-logo {
    height: 44px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    display: block;
}

html.intro-landing .intro-footer__about {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
    line-height: 1.85;
    margin: 0 0 1.5rem;
    max-width: 340px;
}

/* Social media buttons */
html.intro-landing .intro-footer__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

html.intro-landing .intro-footer__social li {
    margin: 0;
}

html.intro-landing .intro-footer__social-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    text-decoration: none;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__social-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(var(--primary-rgb, 109, 91, 208), 0.38);
    }
}

html.intro-landing .intro-footer__social-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Column 2: Quick links */
html.intro-landing .intro-footer__col--links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html.intro-landing .intro-footer__col--links .intro-footer__title {
    text-align: center;
}

html.intro-landing .intro-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

html.intro-landing .intro-footer__links li {
    margin: 0;
    display: flex;
    justify-content: center;
}

html.intro-landing .intro-footer__links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 2px 0 3px;
    line-height: 1.5;
    transition: color 200ms ease;
}

html.intro-landing .intro-footer__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__links a:hover {
        color: var(--primary-light, #d8b4fe);
    }
    html.intro-landing .intro-footer__links a:hover::after {
        transform: scaleX(1);
    }
}

html.intro-landing .intro-footer__links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Column 3: Contact cards */
html.intro-landing .intro-footer__col--contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

html.intro-landing .intro-footer__col--contact .intro-footer__title {
    text-align: center;
}

html.intro-landing .intro-footer__contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
}

html.intro-landing .intro-footer__contact-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    min-height: 52px;
    box-sizing: border-box;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__contact-card:hover {
        background: rgba(var(--primary-rgb, 109, 91, 208), 0.1);
        border-color: rgba(var(--primary-rgb, 109, 91, 208), 0.38);
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(var(--primary-rgb, 109, 91, 208), 0.18);
    }
}

html.intro-landing .intro-footer__contact-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

html.intro-landing .intro-footer__contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb, 109, 91, 208), 0.18);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 200ms ease, color 200ms ease;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__contact-card:hover .intro-footer__contact-icon {
        background: var(--primary);
        color: #ffffff;
    }
}

html.intro-landing .intro-footer__contact-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: anywhere;
    transition: color 200ms ease;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__contact-card:hover .intro-footer__contact-text {
        color: #ffffff;
    }
}

/* Glowing divider above bottom bar */
html.intro-landing .intro-footer__divider {
    position: relative;
    width: 100%;
    height: 1px;
    margin: 2.75rem 0 1.5rem;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--primary-rgb, 109, 91, 208), 0.25) 15%, rgba(var(--primary-rgb, 109, 91, 208), 0.85) 50%, rgba(var(--primary-rgb, 109, 91, 208), 0.25) 85%, transparent 100%);
    border: none;
}

html.intro-landing .intro-footer__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 10px 2px rgba(var(--primary-rgb, 109, 91, 208), 0.9), 0 0 22px 5px rgba(var(--primary-rgb, 109, 91, 208), 0.55);
}

/* Bottom legal bar */
html.intro-landing .intro-footer__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
}

html.intro-landing .intro-footer__copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    margin: 0;
    white-space: nowrap;
}

html.intro-landing .intro-footer__credit {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    margin: 0;
    text-align: center;
}

html.intro-landing .intro-footer__privacy {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 200ms ease;
    white-space: nowrap;
}

@media (hover: hover) {
    html.intro-landing .intro-footer__privacy:hover {
        color: var(--primary-light, #d8b4fe);
    }
}

html.intro-landing .intro-footer__privacy:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Responsive queries */
@media (max-width: 991.98px) {
    html.intro-landing .intro-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem 2rem;
    }

    html.intro-landing .intro-footer__col--brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    html.intro-landing .intro-footer__about {
        max-width: 480px;
        margin-inline: auto;
    }

    html.intro-landing .intro-footer__social {
        justify-content: center;
    }

    html.intro-landing .intro-footer__col--contact {
        align-items: center;
    }
}

@media (max-width: 768px) {
    html.intro-landing .intro-footer__bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    html.intro-landing .intro-footer__copy,
    html.intro-landing .intro-footer__privacy {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    html.intro-landing .intro-footer {
        padding: 2.75rem 0 1rem;
        border-radius: 20px 20px 0 0;
    }

    html.intro-landing .intro-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    html.intro-landing .intro-footer__col--links {
        align-items: center;
    }

    html.intro-landing .intro-footer__contact-cards {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.intro-landing .intro-footer__links a,
    html.intro-landing .intro-footer__links a::after,
    html.intro-landing .intro-footer__social-btn,
    html.intro-landing .intro-footer__contact-card,
    html.intro-landing .intro-footer__contact-icon,
    html.intro-landing .intro-footer__brand,
    html.intro-landing .intro-footer__privacy {
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 991px) {
    html.intro-landing .intro-nav-shell {
        border-radius: 1rem;
    }

    html.intro-landing .intro-nav-cta {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Dark theme support across all palettes (dark-1, dark-2, dark-3)
   -------------------------------------------------------------------------- */
html.intro-landing.dark-style .service-ref-card,
html.intro-landing.dark-style .faq-ref-item,
html.intro-landing.dark-style .partner-ref-card,
html.intro-landing.dark-style .how-work-step-row,
html.intro-landing.dark-style .about-card-layer {
    background: var(--bg-card, rgba(12, 35, 68, 0.92)) !important;
    border-color: var(--border, rgba(255, 255, 255, 0.1)) !important;
}

html.intro-landing.dark-style .service-ref-card__title,
html.intro-landing.dark-style .step-row__title,
html.intro-landing.dark-style .faq-ref-head,
html.intro-landing.dark-style .faq-ref-q,
html.intro-landing.dark-style .about-title,
html.intro-landing.dark-style .how-work-title,
html.intro-landing.dark-style .section-title {
    color: var(--text-main, #f1f5f9) !important;
}

html.intro-landing.dark-style .service-ref-card__desc,
html.intro-landing.dark-style .step-row__desc,
html.intro-landing.dark-style .faq-ref-body-inner,
html.intro-landing.dark-style .about-body,
html.intro-landing.dark-style .how-work-desc,
html.intro-landing.dark-style .section-sub,
html.intro-landing.dark-style .grey-color {
    color: var(--text-muted, #94a3b8) !important;
}

html.intro-landing.dark-style .faq-pill-link:not(.active) {
    background: var(--bg-card, rgba(255, 255, 255, 0.06)) !important;
    border-color: var(--border, rgba(255, 255, 255, 0.12)) !important;
    color: var(--text-main, #cbd5e1) !important;
}

html.intro-landing.dark-style .nav_bar li a:hover,
html.intro-landing.dark-style .nav_bar li a.active {
    background: color-mix(in srgb, var(--primary, #a855f7) 20%, transparent) !important;
    color: var(--primary-light, #ffffff) !important;
}

html.intro-landing.dark-style .intro-nav-shell {
    background: color-mix(in srgb, var(--bg-sidebar, #071A33) 85%, transparent) !important;
    border-color: color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.12)) 80%, transparent) !important;
}

/* ==========================================================================
   MEDLINK CONTINUOUS GLASS SPHERES SYSTEM (خلفية كرات زجاجية احترافية متحركة)
   --------------------------------------------------------------------------
   - Dual-layer motion architecture:
     * Outer wrapper (.medlink-glass-sphere): bounded natural scroll depth parallax in JS
     * Inner body (.medlink-glass-sphere__body): continuous fluid ambient float via CSS
   - Translucent glass with soft highlights, subtle edges, and restrained shading
   - 2-3 visible spheres per desktop viewport, 1-2 on mobile, quiet reading center
   - Theme-adaptive via CSS custom properties (--primary-rgb, --accent-rgb, etc.)
   ========================================================================== */
.medlink-glass-canvas {
    --sphere-op-1: 0.88;
    --sphere-op-2: 0.82;
    --sphere-op-3: 0.72;
    --sphere-op-4: 0.78;
    --sphere-op-5: 0.74;
    --sphere-op-6: 0.68;
    --sphere-op-7: 0.64;
    --sphere-blur: 8px;
    --sphere-border: rgba(255, 255, 255, 0.48);
    --sphere-specular: rgba(255, 255, 255, 0.88);

    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    touch-action: none !important;
    user-select: none !important;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

.medlink-glass-canvas * {
    pointer-events: none !important;
    touch-action: none !important;
    user-select: none !important;
}

/* Outer sphere wrapper: target of scroll parallax controller */
.medlink-glass-sphere {
    position: absolute;
    pointer-events: none !important;
    touch-action: none !important;
    will-change: transform;
    user-select: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner sphere body: target of ambient floating keyframes + translucent glass optics */
.medlink-glass-sphere__body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;

    /* Soft optical refraction */
    backdrop-filter: blur(var(--sphere-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--sphere-blur)) saturate(135%);

    /* Translucent glass: soft gradient core + subtle chromatic perimeter */
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.18) 20%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.05) 45%,
        rgba(var(--accent-rgb, 59, 130, 246), 0.13) 72%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.25) 94%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.35) 100%
    );

    /* Subtle, elegant glass perimeter */
    border: 1px solid var(--sphere-border);

    /* Restrained depth: soft inner caustics and subtle ambient shadow */
    box-shadow:
        inset 0 2px 7px rgba(255, 255, 255, 0.62),
        inset 0 -5px 16px rgba(var(--primary-rgb, 124, 58, 237), 0.18),
        inset 3px 0 10px rgba(var(--accent-rgb, 59, 130, 246), 0.10),
        0 16px 38px rgba(15, 23, 42, 0.07),
        0 4px 14px rgba(var(--primary-rgb, 124, 58, 237), 0.07);

    /* Theme transition */
    transition:
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: transform;
}

/* Restrained pinpoint optical glint at top-left */
.medlink-glass-sphere__body::before {
    content: '';
    position: absolute;
    top: 14%;
    left: 22%;
    width: 9px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    filter: blur(0.5px);
    box-shadow: 0 0 6px 1.5px rgba(255, 255, 255, 0.75);
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 3;
}

/* Soft specular highlight sheen */
.medlink-glass-sphere__specular {
    position: absolute;
    top: 8%;
    left: 14%;
    width: 44%;
    height: 26%;
    border-radius: 50%;
    transform: rotate(-30deg);
    background: radial-gradient(
        ellipse at center,
        var(--sphere-specular) 0%,
        rgba(255, 255, 255, 0.32) 38%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 75%
    );
    filter: blur(1px);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease;
}

/* Subtle secondary caustic rim glow */
.medlink-glass-sphere__reflection {
    position: absolute;
    bottom: 8%;
    right: 12%;
    width: 40%;
    height: 24%;
    border-radius: 50%;
    transform: rotate(24deg);
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-rgb, var(--primary-rgb)), 0.32) 0%,
        rgba(255, 255, 255, 0.18) 38%,
        transparent 70%
    );
    filter: blur(1.5px);
    pointer-events: none;
    z-index: 2;
    transition: background 0.4s ease;
}

/* Dark mode theme adaptation */
html.intro-landing.dark-style .medlink-glass-canvas {
    --sphere-op-1: 0.90;
    --sphere-op-2: 0.84;
    --sphere-op-3: 0.74;
    --sphere-op-4: 0.80;
    --sphere-op-5: 0.76;
    --sphere-op-6: 0.70;
    --sphere-op-7: 0.66;
    --sphere-border: rgba(255, 255, 255, 0.32);
    --sphere-specular: rgba(255, 255, 255, 0.80);
}

html.intro-landing.dark-style .medlink-glass-sphere__body {
    background: radial-gradient(
        circle at 30% 26%,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.12) 18%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.07) 42%,
        rgba(var(--accent-rgb, 59, 130, 246), 0.16) 70%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.28) 92%,
        rgba(0, 0, 0, 0.42) 100%
    );
    border: 1px solid var(--sphere-border);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.40),
        inset 0 -6px 18px rgba(var(--primary-rgb, 124, 58, 237), 0.28),
        inset 3px 0 12px rgba(var(--accent-rgb, 59, 130, 246), 0.18),
        0 18px 44px rgba(0, 0, 0, 0.36),
        0 0 20px rgba(var(--primary-rgb, 124, 58, 237), 0.12);
}

/* ==========================================================================
   SPHERE DIMENSIONS, POSITIONS & CONTINUOUS AMBIENT MOTION
   - 2-3 visible per desktop viewport, asymmetric edge placement
   - 14s-26s continuous closed-loop float cycles with negative phase delays
   ========================================================================== */

/* Sphere 1: Primary Lead Sphere (Upper-Right Edge / Peeking) */
.medlink-glass-sphere--1 {
    width: 175px;
    height: 175px;
    top: 10vh;
    inset-inline-end: -25px;
    z-index: 1;
}
.medlink-glass-sphere--1 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-1);
    animation: medlinkSphereAmbient1 20s ease-in-out infinite -5s;
}

/* Sphere 2: Secondary Mid-Tone Sphere (Mid-Left Edge / Peeking) */
.medlink-glass-sphere--2 {
    width: 130px;
    height: 130px;
    top: 50vh;
    inset-inline-start: -20px;
    z-index: 1;
}
.medlink-glass-sphere--2 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-2);
    animation: medlinkSphereAmbient2 24s ease-in-out infinite -12s;
}

/* Sphere 3: Upper-Mid Depth Sphere (Top-Left Supporting) */
.medlink-glass-sphere--3 {
    width: 95px;
    height: 95px;
    top: 24vh;
    inset-inline-start: 10vw;
    z-index: 0;
}
.medlink-glass-sphere--3 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-3);
    backdrop-filter: blur(6px) saturate(125%);
    -webkit-backdrop-filter: blur(6px) saturate(125%);
    animation: medlinkSphereAmbient3 16s ease-in-out infinite -3s;
}

/* Sphere 4: Lower Grounding Sphere (Lower-Right) */
.medlink-glass-sphere--4 {
    width: 115px;
    height: 115px;
    top: 74vh;
    inset-inline-end: 5vw;
    z-index: 1;
}
.medlink-glass-sphere--4 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-4);
    animation: medlinkSphereAmbient4 22s ease-in-out infinite -15s;
}

/* Sphere 5: Crystal Glass Pearl (Upper-Mid Accent) */
.medlink-glass-sphere--5 {
    width: 65px;
    height: 65px;
    top: 36vh;
    inset-inline-end: 16vw;
    z-index: 0;
}
.medlink-glass-sphere--5 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-5);
    backdrop-filter: blur(5px) saturate(125%);
    -webkit-backdrop-filter: blur(5px) saturate(125%);
    animation: medlinkSphereAmbient5 18s ease-in-out infinite -8s;
}
.medlink-glass-sphere--5 .medlink-glass-sphere__body::before {
    width: 6px;
    height: 4px;
    top: 15%;
    left: 22%;
}

/* Sphere 6: Luminous Glass Bubble (Lower-Left Accent) */
.medlink-glass-sphere--6 {
    width: 50px;
    height: 50px;
    top: 84vh;
    inset-inline-start: 14vw;
    z-index: 0;
}
.medlink-glass-sphere--6 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-6);
    backdrop-filter: blur(4px) saturate(120%);
    -webkit-backdrop-filter: blur(4px) saturate(120%);
    animation: medlinkSphereAmbient6 15s ease-in-out infinite -10s;
}
.medlink-glass-sphere--6 .medlink-glass-sphere__body::before {
    width: 5px;
    height: 3px;
    top: 15%;
    left: 22%;
}

/* Sphere 7: Micro Ethereal Orb (Mid-Right Accent) */
.medlink-glass-sphere--7 {
    width: 38px;
    height: 38px;
    top: 60vh;
    inset-inline-end: 10vw;
    z-index: 0;
}
.medlink-glass-sphere--7 .medlink-glass-sphere__body {
    opacity: var(--sphere-op-7);
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(3px) saturate(120%);
    animation: medlinkSphereAmbient7 17s ease-in-out infinite -6s;
}
.medlink-glass-sphere--7 .medlink-glass-sphere__body::before {
    width: 4px;
    height: 2.5px;
    top: 15%;
    left: 22%;
}

/* Continuous, Fluid Ambient Closed Loops (14s-26s cycles, 12-22px displacement) */
@keyframes medlinkSphereAmbient1 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(16px, -20px, 0);
    }
    50% {
        transform: translate3d(-10px, -14px, 0);
    }
    75% {
        transform: translate3d(-18px, 12px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes medlinkSphereAmbient2 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(-18px, 16px, 0);
    }
    50% {
        transform: translate3d(14px, -18px, 0);
    }
    75% {
        transform: translate3d(-12px, -10px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes medlinkSphereAmbient3 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(14px, 18px, 0);
    }
    50% {
        transform: translate3d(-16px, -12px, 0);
    }
    75% {
        transform: translate3d(10px, -8px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes medlinkSphereAmbient4 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(-18px, -16px, 0);
    }
    50% {
        transform: translate3d(16px, 14px, 0);
    }
    75% {
        transform: translate3d(-10px, 18px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes medlinkSphereAmbient5 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(-12px, -15px, 0);
    }
    50% {
        transform: translate3d(14px, 12px, 0);
    }
    75% {
        transform: translate3d(-8px, 14px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes medlinkSphereAmbient6 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(12px, -14px, 0);
    }
    50% {
        transform: translate3d(-10px, 12px, 0);
    }
    75% {
        transform: translate3d(8px, 10px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes medlinkSphereAmbient7 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(-10px, 12px, 0);
    }
    50% {
        transform: translate3d(12px, -10px, 0);
    }
    75% {
        transform: translate3d(-6px, -8px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Tablet adjustments */
@media (max-width: 991.98px) {
    .medlink-glass-sphere--1 {
        width: 150px;
        height: 150px;
        top: 10vh;
    }
    .medlink-glass-sphere--2 {
        width: 110px;
        height: 110px;
        top: 48vh;
    }
    .medlink-glass-sphere--3 {
        width: 80px;
        height: 80px;
    }
    .medlink-glass-sphere--4 {
        width: 95px;
        height: 95px;
    }
    .medlink-glass-sphere--5 {
        width: 55px;
        height: 55px;
    }
    .medlink-glass-sphere--6 {
        width: 42px;
        height: 42px;
    }
    .medlink-glass-sphere--7 {
        width: 32px;
        height: 32px;
    }
}

/* Mobile adjustments (Quiet 1-2 visible spheres at edges, zero reading obstruction) */
@media (max-width: 768px) {
    .medlink-glass-sphere--3,
    .medlink-glass-sphere--4,
    .medlink-glass-sphere--6,
    .medlink-glass-sphere--7 {
        display: none !important;
    }
    .medlink-glass-sphere--1 {
        width: 115px;
        height: 115px;
        top: 8vh;
        inset-inline-end: -18px;
    }
    .medlink-glass-sphere--1 .medlink-glass-sphere__body {
        opacity: 0.72;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .medlink-glass-sphere--2 {
        width: 80px;
        height: 80px;
        top: 58vh;
        inset-inline-start: -14px;
    }
    .medlink-glass-sphere--2 .medlink-glass-sphere__body {
        opacity: 0.65;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .medlink-glass-sphere--5 {
        width: 42px;
        height: 42px;
        top: 32vh;
        inset-inline-end: 8vw;
        display: flex !important;
    }
    .medlink-glass-sphere--5 .medlink-glass-sphere__body {
        opacity: 0.60;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
}

/* Accessibility: Strict Reduced Motion mode */
@media (prefers-reduced-motion: reduce) {
    .medlink-glass-sphere__body {
        animation: none !important;
        transition: none !important;
    }
    .medlink-glass-sphere {
        transform: none !important;
        will-change: auto !important;
    }
}

/* ==========================================================================
   MEDLINK SOFT SURFACE TRANSITION SYSTEM (فواصل انسيابية ناعمة بين السطوح)
   --------------------------------------------------------------------------
   - Broad, faint shadow fading towards both sides
   - Subtle transition between neighboring background tones
   - Balanced vertical spacing, no sharp lines, no central ornament
   ========================================================================== */

/* Alternating surface tones for gentle depth separation */
html.intro-landing #our_service,
html.intro-landing #FAQ {
    background: rgba(var(--primary-rgb, 124, 58, 237), 0.016);
}

html.intro-landing.dark-style #our_service,
html.intro-landing.dark-style #FAQ {
    background: rgba(255, 255, 255, 0.018);
}

.medlink-surface-divider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none !important;
    touch-action: pan-y !important;
    user-select: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.medlink-surface-divider__blend {
    width: 100%;
    max-width: 1080px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.05) 20%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.11) 50%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.05) 80%,
        transparent 100%
    );
    box-shadow: 0 1px 18px 2px rgba(var(--primary-rgb, 124, 58, 237), 0.04);
}

/* Dark mode surface blend */
html.intro-landing.dark-style .medlink-surface-divider__blend {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 15%,
        rgba(var(--primary-rgb, 124, 58, 237), 0.18) 50%,
        rgba(255, 255, 255, 0.03) 85%,
        transparent 100%
    );
    box-shadow: 0 1px 22px 3px rgba(var(--primary-rgb, 124, 58, 237), 0.06);
}

/* ==========================================================================
   MEDLINK LUXURY SECTION SCROLL-REVEAL SYSTEM
   (حركة ظهور السكاشن الاحترافية مع السكرول مثل المواقع العالمية)
   ========================================================================== */

/* Initially hidden state: gentle fade without GPU layer bloating or touch hijacking */
html.medlink-scroll-reveal-enabled .medlink-reveal-section {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: 
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.55s ease-out;
}

/* Revealed state: elevates into place smoothly */
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Micro-stagger for section headers: arrives smoothly first */
html.medlink-scroll-reveal-enabled .medlink-reveal-section .section-head {
    transition: 
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.04s,
        opacity 0.75s ease-out 0.04s;
}

html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .section-head {
    transform: translate3d(0, 18px, 0);
    opacity: 0;
}

html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .section-head {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Stagger tier 2: grids, cards, carousel wrappers glide up with silky smoothness */
html.medlink-scroll-reveal-enabled .medlink-reveal-section .about-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .services-balanced-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .services-responsive-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .how-work-step-list,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .faq-row,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .partners-ref-wrapper,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .contact-sculpted-wrapper,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .intro-footer__nav-bar,
html.medlink-scroll-reveal-enabled .medlink-reveal-section .intro-footer__grid {
    transition: 
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.10s,
        opacity 0.85s ease-out 0.10s;
}

html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .about-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .services-balanced-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .services-responsive-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .how-work-step-list,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .faq-row,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .partners-ref-wrapper,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .contact-sculpted-wrapper,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .intro-footer__nav-bar,
html.medlink-scroll-reveal-enabled .medlink-reveal-section:not(.is-revealed) .intro-footer__grid {
    transform: translate3d(0, 22px, 0);
    opacity: 0;
}

html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .about-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .services-balanced-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .services-responsive-grid,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .how-work-step-list,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .faq-row,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .partners-ref-wrapper,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .contact-sculpted-wrapper,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .intro-footer__nav-bar,
html.medlink-scroll-reveal-enabled .medlink-reveal-section.is-revealed .intro-footer__grid {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Reduced motion preference respect */
@media (prefers-reduced-motion: reduce) {
    html.medlink-scroll-reveal-enabled .medlink-reveal-section,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .section-head,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .about-grid,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .services-balanced-grid,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .services-responsive-grid,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .how-work-step-list,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .faq-row,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .partners-ref-wrapper,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .contact-sculpted-wrapper,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .intro-footer__nav-bar,
    html.medlink-scroll-reveal-enabled .medlink-reveal-section .intro-footer__grid {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   7. View More Button & Dedicated Static Detail Pages
   -------------------------------------------------------------------------- */
html.intro-landing .about-action-wrap,
html.intro-landing .how-work-action-wrap {
    margin-top: 1.15rem;
}

html.intro-landing .intro-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 1.45rem;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff !important;
    background: var(--gradient, linear-gradient(135deg, var(--primary, #6D5BD0), var(--primary-dark, #4C3FB1))) !important;
    border-radius: 999px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 109, 91, 208), 0.32);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

html.intro-landing .intro-view-more-btn i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

html[dir="rtl"].intro-landing .intro-view-more-btn:hover i {
    transform: translateX(-4px);
}

html[dir="ltr"].intro-landing .intro-view-more-btn:hover i {
    transform: translateX(4px);
}

html.intro-landing .intro-view-more-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb, 109, 91, 208), 0.45);
    filter: brightness(1.08);
}

html.intro-landing .intro-view-more-btn:active {
    transform: translateY(0);
}

/* Static Detail Pages Header & Back Button */
html.intro-landing .intro-static-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary, #6D5BD0) !important;
    background: rgba(var(--primary-rgb, 109, 91, 208), 0.1);
    border: 1px solid rgba(var(--primary-rgb, 109, 91, 208), 0.2);
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

html.intro-landing .intro-static-back-btn i {
    font-size: 0.8rem;
    transition: transform 0.22s ease;
}

html[dir="rtl"].intro-landing .intro-static-back-btn:hover i {
    transform: translateX(3px);
}

html[dir="ltr"].intro-landing .intro-static-back-btn:hover i {
    transform: translateX(-3px);
}

html.intro-landing .intro-static-back-btn:hover {
    background: var(--primary, #6D5BD0);
    color: #ffffff !important;
    border-color: var(--primary, #6D5BD0);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 109, 91, 208), 0.25);
}

/* Static Detail Pages Content Body */
html.intro-landing .intro-static-text {
    color: var(--text-muted, #475569);
    font-size: 1.08rem;
    line-height: 2.1;
    font-weight: 500;
}

html.intro-landing.dark-style .intro-static-text {
    color: #cbd5e1;
}

/* How It Works Steps Sequence in Dedicated Page */
html.intro-landing .intro-static-steps__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

html.intro-landing.dark-style .intro-static-steps__title {
    color: #f8fafc;
}

html.intro-landing .intro-static-step-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-card, #ffffff) 92%, var(--primary, #6d5bd0) 8%);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.22));
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.intro-landing .intro-static-step-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

html.intro-landing.dark-style .intro-static-step-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.intro-landing .intro-static-step-box__num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient, linear-gradient(135deg, var(--primary, #6D5BD0), var(--primary-dark, #4C3FB1)));
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 109, 91, 208), 0.32);
}

html.intro-landing .intro-static-step-box__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main, #0f172a);
}

html.intro-landing.dark-style .intro-static-step-box__title {
    color: #f1f5f9;
}

html.intro-landing .intro-static-step-box__desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted, #64748b);
    margin-bottom: 0;
}

html.intro-landing.dark-style .intro-static-step-box__desc {
    color: #94a3b8;
}

/* ==========================================================================
   Medlink High-Fidelity Realistic Duo Phone Mockups
   (Shared across Download App & About Us Showcase)
   ========================================================================== */
.duo-mockups-stage {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 0 auto;
    display: block;
    flex-shrink: 0;
}

.medlink-app-banner .duo-mockups-stage {
    margin-top: -65px;
    margin-bottom: -45px;
}

.about-visual-showcase .duo-mockups-stage {
    margin-top: -10px;
    margin-bottom: -10px;
}

.duo-iphone-frame {
    position: absolute;
    width: 240px;
    height: 480px;
    border-radius: 40px;
    background: #0f172a;
    padding: 8px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    user-select: none;
    box-sizing: border-box;
}

/* Titanium Outer Frame Rim */
.duo-iphone-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 43px;
    border: 3px solid #64748b;
    pointer-events: none;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.duo-iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 33px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.duo-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 33px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Phone 1: Back, tilted left */
.duo-iphone-frame--back {
    top: 20px;
    left: 10px;
    transform: rotate(-10deg);
    z-index: 2;
    filter: brightness(0.97);
}

.duo-iphone-frame--back:hover {
    transform: rotate(-8deg) translateY(-8px);
}

/* Phone 2: Front, overlapping right, slight tilt */
.duo-iphone-frame--front {
    top: -20px;
    left: 175px;
    transform: rotate(3deg);
    z-index: 3;
    box-shadow: -15px 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.duo-iphone-frame--front:hover {
    transform: rotate(1deg) translateY(-8px);
}

/* Status Bar */
.duo-iphone-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    z-index: 10;
    direction: ltr !important;
}

.duo-status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Dynamic Island */
.duo-dynamic-island {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 20px;
    background: #000000;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 7px;
    gap: 4px;
    z-index: 11;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.island-lens {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid #1e293b;
}

.island-sensor {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: #0f172a;
}

/* Screen 1: Registration Screen */
.duo-register-screen {
    width: 100%;
    height: 100%;
    background: #1359d0;
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 11px;
    direction: rtl !important;
    box-sizing: border-box;
}

.duo-reg-top {
    padding: 38px 14px 12px;
    color: #ffffff;
    text-align: right;
}

.duo-reg-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.duo-reg-brandname {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    letter-spacing: -0.3px;
}

.duo-reg-title {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 3px;
    text-align: center;
}

.duo-reg-desc {
    font-size: 8px;
    line-height: 1.4;
    opacity: 0.9;
    text-align: center;
}

.duo-reg-card {
    flex: 1;
    background: #ffffff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 14px 12px 10px;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.15);
}

.duo-reg-card-head {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #0f172a;
    text-align: right;
}

.duo-reg-card-sub {
    font-size: 8px;
    color: #64748b;
    margin-bottom: 10px;
    text-align: right;
}

.duo-reg-input-group {
    margin-bottom: 9px;
    text-align: right;
}

.duo-reg-label {
    font-size: 8px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 3px;
    display: block;
}

.duo-reg-label span {
    color: #ef4444;
}

.duo-reg-input-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 8px;
    background: #f8fafc;
    gap: 6px;
    direction: ltr !important;
}

.duo-reg-flag-pill {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    font-weight: 700;
    color: #334155;
    padding: 2px 4px;
    background: #e2e8f0;
    border-radius: 5px;
}

.duo-reg-input-val {
    flex: 1;
    font-size: 9px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    letter-spacing: 0.3px;
}

.duo-reg-check-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 7.8px;
    color: #475569;
    text-align: right;
}

.duo-reg-checkbox {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
}

.duo-reg-submit-btn {
    width: 100%;
    padding: 7px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.duo-reg-login-link {
    font-size: 7.8px;
    color: #0284c7;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

/* Screen 2: Splash Screen */
.duo-splash-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1369f4 0%, #0c50cf 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.duo-splash-brand {
    text-align: center;
}

.duo-splash-brandname {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.duo-home-bar {
    position: absolute;
    bottom: 8px;
    width: 95px;
    height: 4px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
}

/* Responsive adjustments for duo mockups */
@media (max-width: 991px) {
    .duo-mockups-stage {
        width: 380px;
        height: 420px;
    }
    .duo-iphone-frame {
        width: 205px;
        height: 410px;
    }
    .duo-iphone-frame--front {
        left: 140px;
    }
    .duo-splash-brand svg {
        width: 95px;
        height: 76px;
    }
    .duo-splash-brandname {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .duo-mockups-stage {
        width: 300px;
        height: 350px;
    }
    .duo-iphone-frame {
        width: 165px;
        height: 330px;
        border-radius: 28px;
        padding: 6px;
    }
    .duo-iphone-frame::before {
        border-radius: 31px;
    }
    .duo-iphone-screen {
        border-radius: 23px;
    }
    .duo-iphone-frame--front {
        left: 110px;
        top: -10px;
    }
    .duo-dynamic-island {
        width: 58px;
        height: 16px;
    }
    .duo-splash-brand svg {
        width: 75px;
        height: 60px;
    }
    .duo-splash-brandname {
        font-size: 18px;
    }
}





